﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.ServiceModel;

namespace landlord2lib
{
    [ServiceContract(Name = "landlord2", Namespace = "http://www.agptech.org/", SessionMode = SessionMode.Required, CallbackContract = typeof(IClientCallback))]
    public interface IClient
    {
        [OperationContract(IsOneWay = true)]
        void Regist(Guid guid, string name, int gender);

        [OperationContract(IsOneWay = true)]
        void SetCurrentWindow(int index);

        [OperationContract]
        DataSet GetTableList();

        [OperationContract]
        DataSet SetSeat(int table, int seat);

        [OperationContract]
        DataSet ClearSeat();

        [OperationContract]
        DataSet GetPlayerInfo();

        [OperationContract(IsOneWay = true)]
        void SetReady();

        [OperationContract(IsOneWay = true)]
        void CallLord(int call);

        [OperationContract]
        bool SendCard(Card[] cards, bool end);

        [OperationContract(IsOneWay = true)]
        void HeartBeat();

        [OperationContract(IsOneWay = true)]
        void SendChat(int gender, int index);

        [OperationContract(IsOneWay = true)]
        void SendChatText(string text);

        [OperationContract(IsOneWay = true)]
        void RobotPlay(bool ena);
    }
}
